package org.footearth.util;

import java.io.IOException;

import org.restlet.resource.ClientResource;
import org.restlet.resource.ResourceException;

public class RestletClient {

	public static void prtResource(int Port) {
		prtResource(Port, "/");
	}

	public static void prtResource(int Port, String Path) {
		ClientResource helloClientresource = new ClientResource(
				"http://localhost:" + Port + Path);
		try {
			helloClientresource.get().write(System.out);
		} catch (ResourceException e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		} catch (IOException e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}
}
